package com.globallogic.vacationplanner.model.dao.declaration;

import java.io.Serializable;
import java.util.List;

import org.hibernate.HibernateException;

public interface IBaseDao<T> extends Serializable {

	void insert(T obj) throws HibernateException;

	T read(T template);
	
	List<T> readAll();
	
	void update(T obj);
	
	void delete(int id);
	
	void delete(T object);
}
